﻿@model TenderSampleApp.Areas.RAC.Models.RACProfileModel
@{
    ViewBag.Title = "FillRACUserProfile";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>
    Заповніть профайл</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm("FillRACProfile", "RACProfile", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Ваш профайл</legend>
        <div class="editor-label">
            Загрузіть вашу фотографію формата(png, gif, jpeg)
        </div>
        <div class="editor-field">
           <input type="file"  name="photo"/>

        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.FirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.LastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Surname)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Surname)
            @Html.ValidationMessageFor(model => model.Surname)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.PhysicalRegisterNumber)
        </div>
        <div class="editor-field">
            @Html.TextBox("PhysicalRegisterNumber", Model.PhysicalRegisterNumber, new { @readonly = "readonly" })
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.JuridicalRegisterNumber)
        </div>
        <div class="editor-field">
            @Html.TextBox("JuridicalRegisterNumber", Model.JuridicalRegisterNumber, new { @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.JuridicalRegisterNumber)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.RequestPointNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RequestPointNumber)
            @Html.ValidationMessageFor(model => model.RequestPointNumber)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.RegionCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RegionCode)
            @Html.ValidationMessageFor(model => model.RegionCode)
        </div>
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
